// 智慧农业服务平台假数据

// 用户信息
export const userInfo = {
  username: '张伟',
  role: '农场经理',
  phone: '138 1234 5678',
  avatar: '/static/images/avatar.png'
};

// 天气信息
export const weatherInfo = {
  location: '上海',
  today: {
    date: '2025-07-04',
    weather: '晴天',
    temperature: {
      high: 25,
      low: 26
    },
    humidity: '65%',
    wind: '东南风 3级'
  },
  forecast: [
    { day: '今天', weather: '晴', high: 25, low: 26 },
    { day: '明天', weather: '晴', high: 25, low: 26 },
    { day: '07/04', weather: '雨', high: 25, low: 26 },
    { day: '07/05', weather: '雨', high: 25, low: 26 },
    { day: '07/06', weather: '雨', high: 25, low: 26 }
  ]
};

// 地块信息
export const landInfo = {
  farmName: '上海鼎和无人农场',
  blocks: [
    { id: 1, name: '1号地块', plotCount: 5 },
    { id: 2, name: '2号地块', plotCount: 3 },
    { id: 3, name: '3号地块', plotCount: 8 }
  ],
  plots: [
    { id: 1, blockId: 1, name: '1号条田' },
    { id: 2, blockId: 1, name: '2号条田' },
    { id: 3, blockId: 1, name: '3号条田' },
    { id: 4, blockId: 1, name: '4号条田' },
    { id: 5, blockId: 1, name: '5号条田' },
    { id: 6, blockId: 2, name: '6号条田' },
    { id: 7, blockId: 2, name: '7号条田' },
    { id: 8, blockId: 2, name: '8号条田' },
    { id: 9, blockId: 3, name: '9号条田' },
    { id: 10, blockId: 3, name: '10号条田' },
    { id: 11, blockId: 3, name: '11号条田' },
    { id: 12, blockId: 3, name: '12号条田' },
    { id: 13, blockId: 3, name: '13号条田' },
    { id: 14, blockId: 3, name: '14号条田' },
    { id: 15, blockId: 3, name: '15号条田' }
  ]
};

// 当前种植作物信息
export const cropInfo = {
  current: {
    name: '冬小麦',
    variety: '郑麦366',
    plantDate: '2023-10-15',
    area: 120
  },
  statistics: {
    seedUsage: [
      { name: '郑麦366', amount: 800, unit: 'kg' },
      { name: '周麦27', amount: 400, unit: 'kg' },
      { total: 1200, unit: 'kg' }
    ],
    pesticideUsage: [
      { name: '除草剂', amount: 200, unit: 'L' },
      { name: '杀虫剂', amount: 100, unit: 'L' },
      { name: '杀菌剂', amount: 60, unit: 'L' },
      { total: 360, unit: 'L' }
    ],
    fertilizerUsage: [
      { name: '复合肥', amount: 1200, unit: 'kg' },
      { name: '尿素', amount: 800, unit: 'kg' },
      { name: '钾肥', amount: 400, unit: 'kg' },
      { total: 2400, unit: 'kg' }
    ]
  }
};

// 农事记录
export const farmingRecords = [
  {
    type: '播种作业',
    date: '2023-10-15 09:30',
    content: '使用播种机完成120亩小麦播种',
    block: '1号地块',
    plot: '1号条田'
  },
  {
    type: '灌溉作业', 
    date: '2023-10-20 14:15',
    content: '完成地块北部60亩灌溉，用水量180m³',
    block: '2号地块',
    plot: '3号条田'
  },
  {
    type: '施药作业',
    date: '2023-10-25 10:00',
    content: '喷洒除草剂，面积120亩，用量360L',
    block: '1号地块',
    plot: '全部条田'
  },
  {
    type: '施肥作业',
    date: '2023-11-05 08:45',
    content: '追施复合肥，用量1200kg，覆盖60亩',
    block: '3号地块',
    plot: '1号条田'
  }
];

// 种子准备记录
export const seedRecords = [
  {
    type: '玉米种子',
    variety: '金玉1号',
    amount: 5.2,
    unit: 'kg',
    person: '张明远',
    date: '2023-11-15 09:30'
  },
  {
    type: '水稻种子',
    variety: '超级稻3号',
    amount: 8.7,
    unit: 'kg',
    person: '李思雨',
    date: '2023-11-14 14:15'
  },
  {
    type: '小麦种子',
    variety: '冬麦8号',
    amount: 12.3,
    unit: 'kg',
    person: '王建国',
    date: '2023-11-13 10:45'
  }
];

// 播种记录
export const plantingRecords = [
  {
    date: '2023-10-15 08:30',
    block: '1号地块',
    plot: '1号条田',
    crop: '冬小麦',
    variety: '中麦175',
    area: 15.6,
    method: '水直播-无人机',
    person: '张明'
  },
  {
    date: '2023-10-12 14:15',
    block: '2号地块',
    plot: '3号条田',
    crop: '玉米',
    variety: '郑单958',
    area: 23.2,
    method: '水直播-机械',
    person: '李伟'
  },
  {
    date: '2023-10-08 09:45',
    block: '3号地块',
    plot: '5号条田',
    crop: '水稻',
    variety: '中早39',
    area: 18.7,
    method: '插秧-机械',
    person: '王强'
  },
  {
    date: '2023-10-05 10:30',
    block: '4号地块',
    plot: '8号条田',
    crop: '大豆',
    variety: '中黄13',
    area: 12.5,
    method: '播种-机械',
    person: '赵明'
  }
];

// 土地整备记录
export const landPreparationRecords = [
  {
    dateRange: '2023-10-15 至 2023-10-17',
    block: '3号地块',
    plot: '12号条田',
    area: 45.6,
    type: '平地',
    person: '张伟'
  },
  {
    dateRange: '2023-10-10 至 2023-10-12',
    block: '5号地块',
    plot: '8号条田',
    area: 32.8,
    type: '翻地',
    person: '李娜'
  },
  {
    dateRange: '2023-10-05 至 2023-10-07',
    block: '2号地块',
    plot: '15号条田',
    area: 28.3,
    type: '平地',
    person: '王强'
  },
  {
    dateRange: '2023-09-28 至 2023-09-30',
    block: '4号地块',
    plot: '6号条田',
    area: 51.2,
    type: '翻地',
    person: '陈明'
  },
  {
    dateRange: '2023-09-20 至 2023-09-22',
    block: '1号地块',
    plot: '10号条田',
    area: 39.7,
    type: '平地',
    person: '赵静'
  }
];

// 灌溉记录
export const irrigationRecords = [
  {
    dateRange: '2023-11-15 09:30-10:45',
    block: '1号地块',
    plot: '1号条田',
    type: '灌水'
  },
  {
    dateRange: '2023-11-10 14:15-15:30',
    block: '2号地块',
    plot: '3号条田',
    type: '灌水'
  },
  {
    dateRange: '2023-11-05 16:45-18:00',
    block: '3号地块',
    plot: '2号条田',
    type: '灌水'
  }
];

// 施肥记录
export const fertilizationRecords = [
  {
    date: '2023-11-15 09:30',
    block: '1号地块',
    plot: '2号条田',
    type: '基肥',
    fertilizer: '有机肥',
    fertilizerType: '撒施',
    amount: 20,
    concentration: '5%'
  },
  {
    date: '2023-11-10 14:15',
    block: '2号地块',
    plot: '全部条田',
    type: '追肥',
    fertilizer: '尿素',
    fertilizerType: '氮肥',
    amount: 15,
    concentration: '10%'
  },
  {
    date: '2023-11-05 16:45',
    block: '3号地块',
    plot: '1号条田',
    type: '基肥',
    fertilizer: '复合肥',
    fertilizerType: '复合肥',
    amount: 25,
    concentration: '8%'
  },
  {
    date: '2023-10-28 10:20',
    block: '4号地块',
    plot: '3号条田',
    type: '追肥',
    fertilizer: '磷酸二氢钾',
    fertilizerType: '磷钾肥',
    amount: 5,
    concentration: '0.3%'
  }
];

// 收获记录
export const harvestRecords = [
  {
    date: '2023-06-15 09:30',
    block: '1号地块',
    plot: '3号条田',
    crop: '水稻',
    variety: '中稻1号',
    area: 2.5,
    yield: 1250,
    maturity: 90,
    loss: 5,
    grade: 'A'
  },
  {
    date: '2023-06-14 14:15',
    block: '2号地块',
    plot: '7号条田',
    crop: '水稻',
    variety: '晚稻2号',
    area: 1.8,
    yield: 850,
    maturity: 85,
    loss: 8,
    grade: 'B'
  },
  {
    date: '2023-06-13 11:00',
    block: '3号地块',
    plot: '2号条田',
    crop: '水稻',
    variety: '早稻3号',
    area: 3.2,
    yield: 2100,
    maturity: 92,
    loss: 6,
    grade: 'A'
  },
  {
    date: '2023-06-12 16:45',
    block: '4号地块',
    plot: '5号条田',
    crop: '水稻',
    variety: '杂交稻4号',
    area: 2.0,
    yield: 980,
    maturity: 88,
    loss: 7,
    grade: 'B'
  }
];

// 作物生长记录
export const cropGrowthRecords = [
  {
    date: '2023-06-15',
    block: '1号地块',
    plot: '1号条田',
    crop: '水稻',
    variety: '超级稻5号',
    stage: '分蘖期',
    leafArea: 45.2,
    height: 68.5,
    tillering: 5.2
  }
];

// 植保记录
export const cropProtectionRecords = [
  {
    dateRange: '2023-06-15 09:30 至 2023-06-17 16:45',
    block: '3号地块',
    plot: '1号条田',
    crop: '小麦',
    area: 15.6,
    method: '无人机',
    equipment: 'DJI Agras T40',
    pesticide: '除草剂',
    amount: 200
  },
  {
    dateRange: '2023-06-18 08:15 至 2023-06-20 17:30',
    block: '5号地块',
    plot: '2号条田',
    crop: '玉米',
    area: 23.2,
    method: '农机',
    equipment: 'John Deere 6120M',
    pesticide: '杀虫剂',
    amount: 350
  },
  {
    dateRange: '2023-06-20 10:00 至 2023-06-22 15:20',
    block: '2号地块',
    plot: '3号条田',
    crop: '水稻',
    area: 18.5,
    method: '无人机',
    equipment: 'DJI Agras T40',
    pesticide: '杀菌剂',
    amount: 150
  },
  {
    dateRange: '2023-06-22 07:45 至 2023-06-24 18:15',
    block: '4号地块',
    plot: '4号条田',
    crop: '大豆',
    area: 12.8,
    method: '农机',
    equipment: 'John Deere 6120M',
    pesticide: '叶面肥',
    amount: 500
  }
];

// 病虫害记录
export const pestDiseaseRecords = [
  {
    date: '2023-11-15',
    type: '病害',
    name: '水稻纹枯病',
    level: '中度',
    block: '1号地块',
    plot: '全部条田',
    area: 1000,
    solution: 'XXXX'
  },
  {
    date: '2023-11-12',
    type: '虫害',
    name: '稻飞虱',
    level: '严重',
    block: '2号地块',
    plot: '5号条田',
    area: 800,
    solution: 'XXXX'
  },
  {
    date: '2023-11-08',
    type: '草害',
    name: '杂草',
    level: '轻微',
    block: '3号地块',
    plot: '7号条田',
    area: 500,
    solution: 'XXXX'
  }
];

// 灾害天气记录
export const disasterRecords = [
  {
    type: '高温',
    date: '2023-07-15',
    duration: 3,
    level: '重度',
    block: '1号地块',
    description: '导致部分作物叶片灼伤，需增加灌溉频率'
  },
  {
    type: '寒潮',
    date: '2023-02-10',
    duration: 2,
    level: '中度',
    block: '2号地块',
    description: '夜间最低温度降至-8°C，部分幼苗受冻'
  },
  {
    type: '暴雨',
    date: '2023-08-05',
    duration: 1,
    level: '轻度',
    block: '3号地块',
    description: '降雨量达50mm，低洼地块有积水'
  },
  {
    type: '干旱',
    date: '2023-06-20',
    duration: 15,
    level: '中度',
    block: '4号地块',
    description: '连续无降雨，土壤含水量降至临界值'
  },
  {
    type: '大风',
    date: '2023-04-12',
    duration: 1,
    level: '轻度',
    block: '5号地块',
    description: '阵风达7级，部分设施轻微受损'
  }
];

// 农事日历
export const farmingCalendar = [
  {
    date: '2023-11-15',
    block: '1号地块',
    person: '张伟',
    tasks: [
      {
        type: '播种',
        time: '上午',
        status: '已完成',
        block: '3号地块',
        plot: '5号条田',
        person: '张伟'
      },
      {
        type: '灌溉',
        time: '下午',
        status: '进行中',
        block: '2号地块',
        plot: '3号条田',
        person: '李娜'
      }
    ],
    description: '对1-15号条田进行尿素施肥，每亩用量20公斤，施肥后立即灌溉。'
  }
];

// 个人中心任务
export const personalTasks = [
  {
    date: '2023-11-15 09:30',
    type: '播种',
    block: '3号地块',
    plot: '1号条田',
    description: '今天在3号地块区进行了小麦播种作业，使用精准无人播种机，播种深度约5cm，播种量每亩15kg。'
  },
  {
    date: '2023-11-10 14:15',
    type: '灌溉',
    block: '5号地块',
    plot: '2号条田',
    description: '对5号地块区进行了浇灌作业，灌溉时长3小时，水量充足，土壤湿度达到理想状态。'
  },
  {
    date: '2023-11-05 08:00',
    type: '施肥',
    block: '2号地块',
    plot: '3号条田',
    description: '为2号地块区的玉米田施用了复合肥，每亩用量30kg，施肥后进行了浅耕覆盖。'
  },
  {
    date: '2023-10-28 10:45',
    type: '病虫害防治',
    block: '7号地块',
    plot: '4号条田',
    description: '发现7号地块区的水稻有稻飞虱害，立即喷洒了吡虫啉进行防治，效果良好。'
  },
  {
    date: '2023-10-20 13:30',
    type: '收获',
    block: '4号地块',
    plot: '5号条田',
    description: '4号地块区的大豆收获作业，使用联合收割机作业，产量达到280kg，品质良好。'
  }
];

// 消息提醒
export const notifications = [
  {
    type: 'warning',
    content: '1号地块土地需施肥',
    time: '12:35'
  },
  {
    type: 'warning',
    content: '2号地块土地需施肥',
    time: '13:35'
  }
];

// 今日安排
export const todaySchedule = [
  {
    type: '工作任务',
    content: '1号地块...',
    time: ''
  },
  {
    type: '工作任务',
    content: '2号地块...',
    time: ''
  }
];

// 灌溉系统模拟数据
export const irrigationSystemData = {
  // 地块数据
  blocks: [
    { id: 1, name: '一号地块', status: true },
    { id: 2, name: '二号地块', status: false },
    { id: 3, name: '三号地块', status: true },
    { id: 4, name: '四号地块', status: true }
  ],
  
  // 阀门数据
  valves: [
    { id: 1, name: '1-1总进阀门', status: false },
    { id: 2, name: '1-1-01进水阀', status: false },
    { id: 3, name: '1-1-02进水阀', status: false },
    { id: 4, name: '1-1-03进水阀', status: false },
    { id: 5, name: '1-1-04进水阀', status: false },
    { id: 6, name: '1-1-05进水阀', status: false },
    { id: 7, name: '1-2总进阀门', status: false }
  ]
}; 